import * as apiService from '@/services/api'

/**
 * 取得实时统计-基础数据
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBasicApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_BASIC,
    params);
};

/**
 * 取得实时统计-充值金额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeRechargeApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_RECHARGE_HOUR,
    params);
};

/**
 * 取得实时统计-充值人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeRechargeUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_RECHARGE_USER_HOUR,
    params);
};

/**
 * 取得实时统计-提现金额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeWithdrawApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_WITHDRAW_HOUR,
    params);
};
/**
 * 取得实时统计-提现人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeWithdrawUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_WITHDRAW_USER_HOUR,
    params);
};

/**
 * 取得实时统计-新注册用户分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeNewUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_NEW_USER_HOUR,
    params);
};
/**
 * 取得实时统计-实际上分总额分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeOnPointsApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_UP_AMOUNT_HOUR,
    params);
};
/**
 * 取得实时统计-实际上分人数分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeOnUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_UP_USER_HOUR,
    params);
};
/**
 * 取得实时统计-活跃用户分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeActiveUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_ACTIVE_USER_HOUR,
    params);
};
/**
 * 取得实时统计-总投注额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBettingAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_BETTING_AMOUNT_HOUR,
    params);
};
/**
 * 取得实时统计-会员输赢分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBettingWinApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_BETTING_WIN_HOUR,
    params);
};
/**
 * 取得实时统计-有效投注额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBettingEffectAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_BETTING_EFFECT_AMOUNT_HOUR,
    params);
};
/**
 * 取得实时统计-投注人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBettingUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_BETTING_USER_HOUR,
    params);
};
/**
 * 取得实时统计-申请优惠人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimePromoUserApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_PROMO_USER_HOUR,
    params);
};
/**
 * 取得实时统计-优惠总额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimePromoAmountApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_PROMO_AMOUNT_HOUR,
    params);
};
/**
 * 取得实时统计-在线用户数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeOnlineApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_ONLINE,
    params);
};
/**
 * 取得实时统计-游戏盈亏汇总
 * @param params
 * @returns {Promise<*>}
 */
const realTimeGameProfitBasicApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_GAME_PROFIT,
    params);
};
/**
 * 取得实时统计-游戏盈亏汇总分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeGameProfitApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_GAME_PROFIT_TIME,
    params);
};

/**
 * 取得实时统计-充值提现明细已
 * @param params
 * @returns {Promise<*>}
 */
const realTimeRechargeDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_RECHARGE,
    params);
};
/**
 * 取得实时统计-新注册用户明细
 * @param params
 * @returns {Promise<*>}
 */
const realTimeNewUserDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_NEW_USER,
    params);
};
/**
 * 取得实时统计-活跃用户明细
 * @param params
 * @returns {Promise<*>}
 */
const realTimeActiveUserDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_ACTIVE_USER,
    params);
};
/**
 * 取得实时统计-投注明细
 * @param params
 * @returns {Promise<*>}
 */
const realTimeBettingDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_BETTING,
    params);
};
/**
 * 取得实时统计-优惠明细
 * @param params
 * @returns {Promise<*>}
 */
const realTimePromoDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_PRMO,
    params);
};
/**
 * 当前在线用户
 * @param params
 * @returns {Promise<*>}
 */
const realTimeOnlineDetailApi = (params) => {
  return apiService.post(api.OPERATIONAL_DETAIL_ONLINE,
    params);
};

/**
 * 取得实时统计-首存人数分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeFirstRechargeUserApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_USER_HOUR,
    params);
};

/**
 * 取得实时统计-首存金额分时分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeFirstRechargeApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_HOUR,
    params);
};


/**
 * 取得实时统计-首存金额分Time分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeTotalFirstRechargeApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_TIME,
    params);
};

/**
 * 取得实时统计-首存人数分Time分布
 * @param params
 * @returns {Promise<*>}
 */
const realTimeTotalFirstRechargeUserApi = (params) => {
  return apiService.get(api.OPERATIONAL_REAL_TIME_FIRST_RECHANGE_USER_TIME,
    params);
};

/**
 * 取得实时统计，活动参与数据
 * @param params
 * @returns {Promise<*>}
 */
const realTimePromoInfoApi = (params) => {
  return apiService.post(api.OPERATIONAL_REAL_TIME_PROMO_INFO,
    params);
};
/**
 * 取得实时统计，活动参与数据
 * @param params
 * @returns {Promise<*>}
 */
const trendPromoInfoApi = (params) => {
  return apiService.post(api.OPERATIONAL_TREND_PROMO_INFO,
    params);
};
/**
 * 取得实时统计，活动参与数据
 * @param params
 * @returns {Promise<*>}
 */
const promoInfoListApi = (params) => {
  return apiService.post(api.OPERATIONAL_PROMO_INFO_LIST,
    params);
};
/**
 * 取得实时统计，活动参与数据
 * @param params
 * @returns {Promise<*>}
 */
const promoInfoDetailListApi = (params) => {
  return apiService.post(api.OPERATIONAL_PROMO_INFO_DETAIL_LIST,
    params);
};


export {
  //实时统计首页接口-begin
  realTimeBasicApi,
  realTimeRechargeApi,
  realTimeRechargeUserApi,
  realTimeWithdrawApi,
  realTimeWithdrawUserApi,
  realTimeNewUserApi,
  realTimeOnPointsApi,
  realTimeOnUserApi,
  realTimeActiveUserApi,
  realTimeBettingAmountApi,
  realTimeBettingWinApi,
  realTimeBettingEffectAmountApi,
  realTimeBettingUserApi,
  realTimeFirstRechargeUserApi,
  realTimeFirstRechargeApi,
  realTimeTotalFirstRechargeApi,
  realTimeTotalFirstRechargeUserApi,
  realTimePromoUserApi,
  realTimePromoAmountApi,
  realTimeOnlineApi,//暂时不确定接口对应功能
  realTimeGameProfitBasicApi,
  realTimeGameProfitApi,
  //实时统计首页接口-end

  //实时统计，查看详细数据接口begin
  realTimeRechargeDetailApi,
  realTimeNewUserDetailApi,
  realTimeActiveUserDetailApi,
  realTimeBettingDetailApi,
  realTimePromoDetailApi,
  realTimeOnlineDetailApi,//单独菜单，当前在线用户
  //实时统计，查看详细数据接口end

  //数据统计begin

  //数据统计end

  realTimePromoInfoApi,
  trendPromoInfoApi,
  promoInfoListApi,
  promoInfoDetailListApi,
};
